package com.demo.security.access;

import java.util.Collection;

import org.springframework.security.core.Authentication;

/**
 * 访问逻辑管理接口
 * @author ryuu.kk
 *
 */
public interface AccessLogicManager {
	
	/**
	 * 访问方法
	 * 
	 * @param authentication 权限
	 * @param object 访问对象
	 * @param logicAttributes 访问属性对象
	 */
	void access(Authentication authentication, Object object, Collection<LogicAttribute> logicAttributes);
	
    boolean supports(LogicAttribute attribute);
    
    boolean supports(Class<?> clazz);
}
